import Layout from '@/layout'
const userInfoManage = {
  path: '/userInfoManage',
  component: Layout,
  redirect: '/userInfoManage/enterpriseList',
  name: 'userInfoManage',
  meta: {
    title: '用户信息管理',
    icon: 'peoples',
    roles: ['SYSTEM_USER', 'TENANT_USER']
  },
  children: [
    {
      path: '/userInfoManage/enterprise',
      component: () => import('@/views/userInfoManage/enterprise/enterpriseList'),
      name: 'enterpriseList',
      meta: { title: '企业列表', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/addEnterprise',
      component: () => import('@/views/userInfoManage/enterprise/enterpriseAdd'),
      name: 'addEnterprise',
      hidden: true,
      meta: { title: '新增企业', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/enterprise/:id',
      component: () => import('@/views/userInfoManage/enterprise/enterpriseDetail'),
      name: '企业详情',
      hidden: true,
      meta: { title: '企业详情', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/enterprise/:id/audit',
      component: () => import('@/views/userInfoManage/enterprise/enterpriseAudit'),
      name: '企业审核',
      hidden: true,
      meta: { title: '企业审核', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/car/carList',
      component: () => import('@/views/userInfoManage/car/carList'),
      name: 'carList',
      meta: { title: '车辆列表', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/car/detail/:id',
      component: () => import('@/views/userInfoManage/car/carDetail'),
      name: 'carDetail',
      hidden: true,
      meta: { title: '车辆详情', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/car/audit/:id',
      component: () => import('@/views/userInfoManage/car/carAudit'),
      name: 'vehicleAudit',
      hidden: true,
      meta: { title: '车辆审核', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/driver/driverList',
      component: () => import('@/views/userInfoManage/driver/driverList'),
      name: 'driverList',
      meta: { title: '司机列表', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/driver/add',
      component: () => import('@/views/userInfoManage/driver/driverAdd'),
      name: 'driverAdd',
      hidden: true,
      meta: { title: '新增司机', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/driver/detail/:id',
      component: () => import('@/views/userInfoManage/driver/driverDetail'),
      name: 'driverDetail',
      hidden: true,
      meta: { title: '司机详情', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/driver/audit/:id',
      component: () => import('@/views/userInfoManage/driver/driverAudit'),
      name: 'driverAudit',
      hidden: true,
      meta: { title: '司机审核', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/driverMaster',
      component: () => import('@/views/userInfoManage/driverMaster/driverMasterList'),
      name: 'driverMasterList',
      meta: { title: '车队长列表', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/driverMaster/add',
      component: () => import('@/views/userInfoManage/driverMaster/driverMasterAdd'),
      name: 'driverMasterAdd',
      hidden: true,
      meta: { title: '新增车队长', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/driverMaster/detail/:id',
      component: () => import('@/views/userInfoManage/driverMaster/driverMasterDetail'),
      name: 'driverMasterDetail',
      hidden: true,
      meta: { title: '车队长详情', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/driverMaster/audit/:id',
      component: () => import('@/views/userInfoManage/driverMaster/driverMasterAudit'),
      name: 'driverMasterAudit',
      hidden: true,
      meta: { title: '车队长审核', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    },
    {
      path: '/userInfoManage/vehicleRelationshipList',
      component: () => import('@/views/userInfoManage/vehicleRelationshipList/index'),
      name: 'vehicleRelationshipList',
      meta: { title: '车辆关系列表', roles: ['SYSTEM_USER', 'TENANT_USER'] }
    }

  ]
}
export default userInfoManage
